package cn.flying.cloud.flow.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.flying.cloud.flow.entity.FwProcException;

/**
 * 异常信息表 Mapper 接口
 *
 * @author
 * @since 2024-09-20 10:45:05
 */
@Mapper
public interface FwProcExceptionMapper extends BaseMapper<FwProcException> {

    /**
     * 插入一条记录
     *
     * @param fwProcException 实体对象
     * @return
     */
    @Insert("insert into fw_proc_exception (id, proc_inst_id, execution_id, proc_def_id, proc_def_key, proc_def_name, activiti_id, activiti_name, biz_key, exception_msg, exception_trace, deal_state, tenant_id, revision, created_by, created_time, updated_by, updated_time, deleted )" +
            "values (#{id}, #{procInstId}, #{executionId}, #{procDefId}, #{procDefKey}, #{procDefName}, #{activitiId}, #{activitiName}, #{bizKey}, #{exceptionMsg}, #{exceptionTrace}, #{dealState}, #{tenantId}, #{revision}, #{createdBy}, " +
            "createdTime}, #{updatedBy}, #{updatedTime}, #{deleted})")
    int insert(FwProcException fwProcException);
}
